package top.hcode.hoj.pojo.entity.coll;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 用户答题记录
 * (coll_user_answer)表实体类
 *
 * @author orangej
 * @since 2025-02-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("coll_user_answer")
public class CollUserAnswer implements Serializable {

    private static final long serialVersionUID = 5073925571L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    private String userId;

    private String classId;

    private String collId;

    private String questionId;

    private String answer;

    @ApiModelProperty(value = "该题得分")
    private BigDecimal score;

    @ApiModelProperty(value = "判题状态：0 未判题 1 正在判题 2 判题完成")
    private Integer judgeState;

    @ApiModelProperty(value = "判题教师id")
    private String judgingTeacherId;

    @ApiModelProperty(value = "判题开始时间")
    private Date judgeLockAt;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    /*关联属性*/

}
